#if !defined(AFX_DIALOGVIEWER_H__EAE4C437_BAB8_4248_B556_CEEEE62C8871__INCLUDED_)
#define AFX_DIALOGVIEWER_H__EAE4C437_BAB8_4248_B556_CEEEE62C8871__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DialogViewer.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CDialogViewer dialog

class CDialogViewer : public CDialog
{
// Construction
public:
	CDialogViewer(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CDialogViewer)
	enum { IDD = IDD_DIALOG_VIEWER };
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDialogViewer)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

public:
	char fileName[500];
	CString homeFile;
// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CDialogViewer)
	virtual BOOL OnInitDialog();
	afx_msg void OnButtonBack();
	afx_msg void OnButtonForward();
	afx_msg void OnButtonHome();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnBnClickedCancel();
	int buttonsFlag;
protected:
	//keep track on back and forward clicks
	int m_back;
	int m_forward;
	
public:
	afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
protected:
	virtual BOOL OnWndMsg(UINT message, WPARAM wParam, LPARAM lParam, LRESULT* pResult);
public:
	virtual HRESULT accNavigate(long navDir, VARIANT varStart, VARIANT *pvarEndUpAt);
	virtual HRESULT accLocation(long *pxLeft, long *pyTop, long *pcxWidth, long *pcyHeight, VARIANT varChild);
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DIALOGVIEWER_H__EAE4C437_BAB8_4248_B556_CEEEE62C8871__INCLUDED_)
